import request from "@/utils/request";

export default {
    name: "Login",
    data() {
        return {
            identity: "",
            numid:null,
            form: {
                username: null,
                password: "",
            },
            rules: {
                username: [
                    {required: true, message: "请输入用户名", trigger: "blur"},{type:'number',message:'必须是数字',trigger:'blur'}
                ],
                password: [{required: true, message: "请输入密码", trigger: "blur"}],
            },
        };
    },
    computed: {
        disabled() {
            const {username, password, identity} = this.form;
            return Boolean(username && password && identity);
        },
    },
    methods: {
        login() {
           const _this=this;
            
            this.$refs.form.validate((valid) => {
               console.log(111)
                if (valid) {
                    //登录请求
                    //url:"/admin/login",data:this.form
                    
                   
                }
            });
        },
    },
};